#ifndef __TOOL_H
#define __TOOL_H
#include "stdint.h"


int str_search(const char* src, char* dst, int num);
int mem_search(uint8_t* array, int array_len, char dst, int num);
int hex_to_str(uint8_t* sdata, uint8_t hdata);
int hexarr_to_strarr(uint8_t* sdata, uint8_t* hdata, uint16_t hlength);
void str_to_hex(uint8_t* str, uint8_t* hex);
int strarr_to_hexarr(uint8_t* sdata, uint8_t* hdata, uint16_t str_len);
void str_inter(char* src_str, int src_inter_len, char* out_str, char* inter_str);




#endif
